import request from "./http";
import {MaterialDirectoryEntity, MaterialDirectoryDto} from "@/entity/MaterialDirectory";
export async function getAllMaterialDirectory(param?: MaterialDirectoryDto): Promise<MaterialDirectoryEntity[]> {
    return await request("materialDirectory/category", param);
  }

  // 获取子目录
export async function getMaterialSubDirectory(param?: MaterialDirectoryDto): Promise<MaterialDirectoryEntity[]> {
    return await request("materialDirectory/getSub", param);
  }